package com.jd.system.result;

public class Result {
    public static ResultJson success() {
        return new ResultJson(true);
    }

    public static ResultJson success(ResponseStatues responseStatues) {
        return new ResultJson(true, responseStatues);
    }

    public static <T> ResultJson<T> success(ResponseStatues responseStatues, T data) {
        return new ResultJson(true, responseStatues, data);
    }

    public static <T> ResultJson<T> success(T data) {
        return new ResultJson(true, data);
    }

    public static ResultJson fail() {
        return new ResultJson(false);
    }

    public static ResultJson fail(ResponseStatues responseStatues) {
        return new ResultJson(false, responseStatues);
    }
}
